Don't omit GTK_ICON_SIZE_DIALOG
authorMatthias Clasen <mclasen@redhat.com>
Sun, 18 Oct 2009 06:07:58 +0000 (02:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 18 Oct 2009 06:07:58 +0000 (02:07 -0400)
gtk/gtkstatusicon.c

index 1cdb0c15d3441964e985a9a3028b9c141b658302..74c52ae2186ea910816ad8646476d89b07563cdf 100644 (file)
@@ -1352,7 +1352,7 @@ find_icon_size (GtkWidget *widget,
   dist = G_MAXINT;
   size = GTK_ICON_SIZE_MENU;
 
-  for (s = GTK_ICON_SIZE_MENU; s < GTK_ICON_SIZE_DIALOG; s++)
+  for (s = GTK_ICON_SIZE_MENU; s <= GTK_ICON_SIZE_DIALOG; s++)
     {
       if (gtk_icon_size_lookup_for_settings (settings, s, &w, &h) &&
          w <= pixel_size && h <= pixel_size)